projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4494884
)
model button: Small fixes
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 5 Jun 2019 19:33:43 +0000
(19:33 +0000)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 9 Jun 2019 17:38:53 +0000
(17:38 +0000)
Make iconic model buttons work better.
gtk/gtkmodelbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmodelbutton.c
b/gtk/gtkmodelbutton.c
index 16cf8b1c75fb05f305c4889d912550eec7f40929..25dbbe67486ed19e2a44059f5a3aa251eeb0c1cd 100644
(file)
--- a/
gtk/gtkmodelbutton.c
+++ b/
gtk/gtkmodelbutton.c
@@
-370,6
+370,8
@@
update_visibility (GtkModelButton *button)
gtk_widget_set_visible (button->image, has_icon && (button->iconic || !has_text));
gtk_widget_set_visible (button->label, has_text && (!button->iconic || !has_icon));
+ gtk_widget_set_hexpand (button->image, has_icon && !has_text);
+ gtk_widget_set_hexpand (button->box, FALSE);
}
static void